<?php

include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
//include_once '../../../../Core/Conexion.php';
include_once '../../entidades/Curso.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Grabar
 *
 * @author home
 */
class Eliminar extends Controlador {

    function __construct() {
        parent::__construct();
    }

    public function ejecutar() {        
        $entidad= new Curso($_GET['codigo'],"","","","");
                //($_GET['codigo'],'','','', '');        
        $this->conexion->eliminar($entidad);        
        header("Location: ../lista.php");
    }

//put your code here
}

$controlador = new Eliminar();
$controlador->ejecutar();



